/**
 * Aistarfish.com Inc.
 * Copyright (c) 2017-2020 All Rights Reserved.
 */
package com.xf.model;

import java.util.List;

/**
 *
 * @author xiangfeng
 * Created by on 2020-01-02 15:12
 */
public class PageResult<T> {
    private List<T> rows;

    private Integer total;

    private Integer totalNotFiltered;

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public Integer getTotalNotFiltered() {
        if(totalNotFiltered == null){
            return total;
        }
        return totalNotFiltered;
    }

    public void setTotalNotFiltered(Integer totalNotFiltered) {
        this.totalNotFiltered = totalNotFiltered;
    }
}
